export function getCertificateNumber(str) {
  var num = str.search("BEGIN CERTIFICATE-----\n");
  var char = str.charAt(num2);
  let str1 = str.slice(num + 23)
  var num2 = str1.lastIndexOf('-----END CERTIFICATE-----\n');
  let str2 = str1.slice(0, num2 - 3);
  return str2;
}